import request from '@/untils/request'

export const getstash=(params)=>{
  return request({
    url:`/stash`,
    method:"get",
    params 
  })
}
export const getSupplierlist=()=>{
  return request({
    url:`/supplier/selectSupplierName`,
    method:"get",
  })
}
export const deletestash = (id) => { 
  return request({
    url: `/stash/delete/${id}`,     
    method: "delete",
  }) 
}

export  const updatestash=(data)=>{
  return request({
    url:`stash`,
    method:"put",
    data
  })
}

export const addstash=(data)=>{
  return request({
    url:`stash`,
    method:"post",
    data
  })
}